package com.corpgovernment.organization.config;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @program: parent
 * @description: durid数据源配置信息
 * @author: wubing
 * @create: 2019-05-21 11:09
 */
@Data
@ToString
@Component
@ConfigurationProperties(prefix = "spring.druid")
public class DbProperties {

    private String druidClassName;
    private String url;
    private String username;
    private String password;
    private int initialSize;
    private int maxActive;
    private int minIdle;
    private long maxWait;
    private long timeBetweenEvictionRunsMillis;
    private String validationgQuery;
    private boolean testWhileIdle;

}
